class UpController {
    def upService


    def index = { 
            [term : Term.currentTerm()] 
    }

    def up = { 

        upService.schoolClear(session.schoolId)

        if (upService.schoolUp(session.schoolId, params.term, grailsApplication.config.grails.default.blog.upclass.uri)) {
            flash.message = "学校所有班级升级成功！"
        }else{
            flash.errors = "学校所有班级升级失败！"
        }
    }


}
